import sys
import gc
print(gc.isenabled())
# class Student():
#     # def __init__(self, name, age):
#     #     self.name = name
#     #     self.age = age
#     pass
# li = []
# print(sys.getsizeof(Student()))
# while True:
#     li.append(Student())
print(gc.get_threshold())
# gc.set_threshold(100,1,1)
gc.collect(2) # 默认清理所有区

li = "zsa"
print(sys.getrefcount(li))